
<%@ page import="com.capgemini.rdlgae.domain.Commande" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'commande.label', default: 'Commande')}" />
        <title><g:message code="default.show.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
            <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.show.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="dialog">
                <table>
                    <tbody>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="commande.dateCommande.label" default="Date Commande" /></td>
                            
                            <td valign="top" class="value"> <g:formatDate date="${commandeInstance.dateCommande}" format="EEEE d MMMM"/></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="commande.entree.label" default="Entree" /></td>
                            
                            <td valign="top" class="value"><g:link controller="entree" action="show" id="${commandeInstance?.entree?.id}">${commandeInstance?.entree?.encodeAsHTML()}</g:link></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="commande.plat.label" default="Plat" /></td>
                            
                            <td valign="top" class="value"><g:link controller="plat" action="show" id="${commandeInstance?.plat?.id}">${commandeInstance?.plat?.encodeAsHTML()}</g:link></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="commande.dessert.label" default="Dessert" /></td>
                            
                            <td valign="top" class="value"><g:link controller="dessert" action="show" id="${commandeInstance?.dessert?.id}">${commandeInstance?.dessert?.encodeAsHTML()}</g:link></td>
                            
                        </tr>
                        
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="commande.commentaire.label" default="Commentaire" /></td>
                            
                            <td valign="top" class="value">${commandeInstance?.commentaire}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="commande.utilisateur.label" default="Utilisateur" /></td>
                            
                            <td valign="top" class="value"><g:link controller="utilisateur" action="show" id="${commandeInstance?.utilisateur?.id}">${commandeInstance?.utilisateur?.encodeAsHTML()}</g:link></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="commande.total.label" default="Total" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: commandeInstance, field: "total")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="commande.envoyee.label" default="Envoyee" /></td>
                            
                            <td valign="top" class="value"><g:if test="${commandeInstance.envoyee}">
                            		Oui                            	</g:if>
                            	<g:else>
                            		Non
                            	</g:else></td></td>
                            
                        </tr>

                    </tbody>
                </table>
            </div>
            <div class="buttons">
                <g:form>
                    <g:hiddenField name="id" value="${commandeInstance?.id}" />
                    <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
                </g:form>
            </div>
        </div>
    </body>
</html>
